package com.kawa.kemanage.service;

import com.github.pagehelper.PageInfo;
import com.kawa.kemanage.entity.UserFeedback;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserFeedbackService {

    /**
     * 查询用户反馈列表
     * @return
     */
//    PageInfo<UserFeedback> queryFeekBack(Integer pageNo, Integer pageSize,String type,String status);
    PageInfo<UserFeedback> queryFeekBack(Integer pageNo, Integer pageSize, String type, String status);
    /**
     * 根据feedback_id 查看反馈信息
     * @param feedback_id
     * @return
     */
    UserFeedback selectFeekbackById(Integer feedback_id);

    /**
     * 删除反馈信息
     * @param feedback_id
     * @return
     */
    boolean delFeekback(Integer feedback_id);

    /**
     * 增加反馈信息
     * @param userFeedback
     * @return
     */
    boolean addFeekback(UserFeedback userFeedback);

    /**
     * 修改反馈信息
     * @param userFeedback
     * @return
     */
    boolean update(UserFeedback userFeedback);


    //统计
    public Map<String, Integer> getFeedbackStats();


    List<UserFeedback> queryFeedbacksByUserId(Integer user_id);
}
